Component({
    properties: {
      course: {
        type: Object,
        value: {}
      }
    },
  
    data: {
      weekDays: ['一', '二', '三', '四', '五', '六', '日']
    },
  
    methods: {
      onTapCourse() {
        const { course } = this.properties;
        wx.navigateTo({
          url: `/pages/course/courseModify?id=${course.id}`
        });
      },
  
      onTapAddEvent() {
        const { course } = this.properties;
        wx.navigateTo({
          url: `/pages/event/eventCreate?courseId=${course.id}`
        });
      }
    }
  });